package kr.hs.hanj;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class Menu extends Activity{
	ImageView img_door;
	ImageView img_house1;
	ImageView img_house2;
	ImageView img_house3;
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu);

        img_door=(ImageView)findViewById(R.id.img_door);
        img_house1=(ImageView)findViewById(R.id.img_house1);
        img_house2=(ImageView)findViewById(R.id.img_house2);
        img_house3=(ImageView)findViewById(R.id.img_house3);
        
        img_door.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent=new Intent(Menu.this, Main.class);
				startActivity(intent);
			}
		});
        
        img_house1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent=new Intent(Menu.this, house1.class);
				startActivity(intent);
			}
		});
        
        img_house2.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent=new Intent(Menu.this, house2.class);
				startActivity(intent);
			}
		});
        
        img_house3.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent=new Intent(Menu.this, house3.class);
				intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
				startActivity(intent);
			}
		});
        
	}
}
